<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Estoque - Cadastro de Produtos</title>
</head>

<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">

<fieldset>
<legend>
<font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
<b>Cadastro de Produtos</b>
</font>
</legend>

<form action="#" method="post" name="form">
<table cellpadding="0" cellspacing="0" width="100%">
    <tr>
    <td valign="middle" height="30" colspan="4">
    </td>
    </tr>

    <tr>
    <td width="16%" align="left">
    <font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
    <strong>&nbsp;&nbsp;Regra de venda:</strong> 
    </font>
    &nbsp;
    </td>
    <td width="24%" align="left" colspan="3">
 
    <input type="radio" name="regra" id="r1" value="1" {ck_regra1}/>
	&nbsp;
    <font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
    <strong>OC</strong> 
    </font>
	&nbsp;
    <input type="radio" name="regra" id="r2" value="2" {ck_regra2} />
	&nbsp;
    <font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
    <strong>Somente com estoque</strong> 
    </font>

    </td>

    </tr>

    <tr>
    <td valign="middle" height="8" colspan="4">
    </td>
    </tr>

    <tr>
    <td width="16%" align="left">
    <font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
    <strong>&nbsp;&nbsp;C&oacute;digo:</strong> 
    </font>
    &nbsp;
    </td>
    <td width="24%" align="left">
    <input type="text" name="codigo"  size="30" title="Codigo de refer&ecirc;ncia da loja" value="{codigo}" />
    </td>

    <tr>
    <td valign="middle" height="8" colspan="4">
    </td>
    </tr>

    <tr>
    <td width="16%" align="left">
    <font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
    <strong>&nbsp;&nbsp;Descri&ccedil;&atilde;o:</strong> 
    </font>
    &nbsp;
    </td>
    <td width="24%" colspan="4" align="left">
    <input type="text" name="descricao"  size="70" title="Descri&ccedil;&atilde;o do produtos" value="{descricao}" />
    </td>


    </tr>


    <tr>
    <td valign="middle" height="8" colspan="4">
    </td>
    </tr>

    <tr>
    <td width="16%" align="left">
    <font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
    <strong>&nbsp;&nbsp;Fornecedor:</strong> 
    </font>
    &nbsp;
    </td>
    <td width="24%" colspan="4" align="left">
    <input type="text" name="fornecedor"  size="50" title="F&aacute;brica ou representante" value="{fornecedor}" />
    <input type="hidden" name="id_fornecedor" id="id_fornecedor" value="{id_fornecedor}" />
    </td>


    </tr>

    <tr>
    <td valign="middle" height="8" colspan="4">
    </td>
    </tr>

    <tr>
    <td width="16%" align="left">
    <font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
    <strong>&nbsp;&nbsp;Fabricante:</strong> 
    </font>
    &nbsp;
    </td>
    <td width="24%" colspan="4" align="left">
    <input type="text" name="fabricante"  size="50" title="F&aacute;bricante do produto" value="{fabricante}" />
    <input type="hidden" name="id_fabricante" id="id_fabricante" value="{id_fabricante}" />
    </td>


    </tr>

    <tr>
    <td valign="middle" height="8" colspan="4">
    </td>
    </tr>

    <tr>
    <td width="16%" align="left">
    <font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
    <strong>&nbsp;&nbsp;Grupo:</strong> 
    </font>
    &nbsp;
    </td>
    <td width="24%" colspan="4" align="left">
    <input type="text" name="grupo"  size="50" title="Grupo do produto" value="{grupo}" />
    <input type="hidden" name="id_grupo" id="id_grupo" value="{id_grupo}" />
    </td>


    </tr>

    <tr>
    <td valign="middle" height="10" colspan="4">
    </td>
    </tr>


    <tr>
    <td width="16%" align="left">
    <font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
    <strong>&nbsp;&nbsp;Pre&ccedil;o de custo R$:</strong> 
    </font>
    &nbsp;
    </td>
    <td width="24%" align="left">
    <input type="text" name="pr_custo"  size="20" maxlength="20" title="Pre&ccedil;o de custo" value="{pr_custo}"/>
    </td>

    <td width="16%" align="left">
    <font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
    <strong>&nbsp;&nbsp;&nbsp;&nbsp;Percentual:</strong> 
    </font>
    &nbsp;
    </td>
    <td width="44%" align="left">
    <input type="text" name="percentual"  size="20" title="Percentual de lucro" value="{percentual}" />
    <font color="#000000" size="3" face="Arial, Helvetica, sans-serif">
    <strong>&nbsp;%</strong> 
    </font>
    </td>

    </tr>

    <tr>
    <td valign="middle" height="8" colspan="4">
    </td>
    </tr>

    <tr>
      <td align="left"><font color="#000000" size="2" face="Arial, Helvetica, sans-serif"> <strong>&nbsp;&nbsp;Pre&ccedil;o c/ Desconto R$:</strong> </font> &nbsp; </td>
      <td align="left"><input name="pr_desconto" type="text" id="pr_desconto" title="Preço de custo" value="{pr_desconto}"  size="20" maxlength="20"/></td>
      <td align="left">&nbsp;</td>
      <td align="left">&nbsp;</td>
    </tr>
    <tr>
      <td colspan="4" align="left">&nbsp;</td>
      </tr>
    <tr>
    <td width="16%" align="left">
    <font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
    <strong>&nbsp;&nbsp;Estoque m&aacute;ximo:</strong> 
    </font>
    &nbsp;
    </td>
    <td width="24%" align="left">
    <input type="text" name="est_max"  size="20" title="Estoque m&aacute;ximo" value="{est_max}" />
    </td>

    <td width="16%" align="left">
    <font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
    <strong>&nbsp;&nbsp;&nbsp;&nbsp;Estoque m&iacute;nimo:</strong> 
    </font>
    &nbsp;
    </td>
    <td width="44%" align="left">
    <input type="text" name="est_min"  size="20" title="Estoque m&iacute;nimo" value="{est_min}"/>
    </td>

    </tr>


    <tr>
    <td valign="middle" height="8" colspan="4">
    </td>
    </tr>

    <tr>
    <td width="16%" align="left">
    <font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
    <strong>&nbsp;&nbsp;Categoria:</strong> 
    </font>
    &nbsp;
    </td>
    <td width="24%" colspan="4" align="left"><input name="cat_pai" type="text" id="categoria" title="Categoria do Produto" value="{categoria}"  size="50" onclick="popup_cat_pai()" />
      <input type="hidden" name="cat_pai_id" id="cat_pai_id" value="{categoria_id}" /></td>


    </tr>

    <tr>
    <td valign="middle" height="8" colspan="4">
    </td>
    </tr>

    <tr>
    <td width="16%" align="left">
    <font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
    <strong>&nbsp;&nbsp;Legenda:</strong> 
    </font>
    &nbsp;
    </td>
    <td width="24%" colspan="4" align="left">
    <input type="text" name="legenda"  size="50" title="Legenda do produto no website" value="{legenda}" />
    </td>


    </tr>


    <tr>
    <td valign="middle" height="20" colspan="4">
    </td>
    </tr>

    <tr>
    <td valign="middle" colspan="4" align="left">
    	<!-- START BLOCK : DESCRICAO -->
    		<table width="100%" cellspacing="0" id="tabela_descricao">
            	<tr class="barra_titulo_consultas">
                	<td width="10%">&nbsp;<font color="#FFFFFF"> <strong>Descri&ccedil;&atilde;o</strong></font></td>
                    <td width="17%"> </td>
                    <td></td>
                </tr>
                <tr>
                    	<td>&nbsp;Tipo</td><td>&nbsp;</td><td width="73%">Descri&ccedil;&atilde;o</td>
                </tr>
                <!-- START BLOCK : LINHA_DESCRICAO -->
                	<tr>
                    	<td>&nbsp;&nbsp;</td><td>{tipo}</td><td>{descricao}</td>
                    </tr>
                <!-- END BLOCK : LINHA_DESCRICAO -->
                <tr>
                	<td colspan="3"><div>
                	  <input type="button" name="nova_descricao" id="nova_descricao" onclick="mostra_form_nova_descricao()"  value="Nova Descricao"/>
              	  </div></td>
                </tr>
            </table>
            <div id="nova_descricao_form" style="display:none">
            	<table width="100%">
            		<tr>
               			<td>&nbsp;Tipo: </td><td><input type="text" name="tipo_descricao" id="tipo_descricao" onblur="troca_tipo_descricao()" /></td><td>&nbsp;&nbsp;</td>
                    	<td>Descricao: <input type="text" name="tipo_descricao_valor" id="tipo_descricao_valor" /></td><td></td>
                	</tr>
                    <tr>
                    	<td><input type="button" name="botao_add_linha"  value="Adiciona Descri&ccedil;&atilde;o" onclick="adiciona_linha()" /></td><td></td>
                    </tr>
            	</table>
            </div>
    	<!-- END BLOCK : DESCRICAO -->
    </td>
    </tr>

    <tr>
    <td valign="middle" height="8" colspan="4">
    </td>
    </tr>

    <tr>
    <td width="16%" align="left">&nbsp;</td>
    <td width="24%" align="left">&nbsp;</td>

    <td width="16%" align="left">
    <font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
    <strong>&nbsp;</strong></font></td>
    <td width="44%" align="left">&nbsp;</td>

    </tr>

    <tr>
    <td valign="middle" height="8" colspan="4">
    </td>
    </tr>

    <tr>
    <td width="16%" align="left">
    <font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
    <strong>&nbsp;</strong></font></td>
    <td width="24%" align="left">&nbsp;</td>

    <td width="16%" align="left">&nbsp;</td>
    <td width="44%" align="left">&nbsp;</td>

    </tr>


    <tr>
    <td valign="middle" height="8" colspan="4">
    </td>
    </tr>

</table>    


<table cellpadding="0" cellspacing="0" width="100%">
    <tr>
    <td valign="middle" height="38" colspan="2">
    </td>
    </tr>

    <tr>
    <td align="left" valign="middle" colspan="2">
	&nbsp;&nbsp;{botao}&nbsp;{botao2}&nbsp;{botao4}&nbsp;{botao3}
    {botao5}</td>
    </tr>

    <tr>
    <td valign="middle" height="8" colspan="2">
    </td>
    </tr>

</table>
<input type="hidden" value="{id}" name="id" />
</form>


</div>
</fieldset>

</body>
</html>
